#ifndef RESOURCEDEF_H
#define RESOURCEDEF_H

enum IncomeItem {
    IncomeItem_BaseSalary,
    IncomeItem_LunchSubSidy,
    IncomeItem_TrafficSubSidy,
    IncomeItem_WorkOverSubSidy,
    IncomeItem_WorkOverPay,
    IncomeItem_DutiesPay,
    IncomeItem_SkillPay,
    IncomeItem_Meritpay,
    IncomeItem_BonusPay,
    IncomeItem_TaxOver,
    IncomeItem_Other1,
    IncomeItem_Other2,
    IncomeItem_Other3,
    IncomeItem_num
};

enum OutgointItem {
    OutgointItem_EndowmentInsurance,
    OutgointItem_MedicalInsurance,
    OutgointItem_UnemploymentInsurance,
    OutgointItem_HousingFund,
    OutgointItem_BackSocialInsurance,
    OutgointItem_OutPayByDay,
    OutgointItem_Late,
    OutgointItem_MaritalLeave,
    OutgointItem_SickLeave,
    OutgointItem_BreastFeedingLeave,
    OutgointItem_DeductBeforeTax,
    OutgointItem_Other1,
    OutgoingItem_Other2,
    OutgointItem_num
};

struct RateTable {
    float minMoney;
    float ratePersent;
    float deletenum;
    bool isSet;
    RateTable(float minM = 0.0f, float rateper = 0.0f, float delnum = 0.0f, bool isbeset = false)
        : minMoney(minM)
        , ratePersent(rateper)
        , deletenum(delnum)
        , isSet(isbeset) {
    }
};

#endif // RESOURCEDEF_H
